const sql = require("./mysql")

let str = `(0) 0x4f3edf983ac636a65a842ce7c78d9aa706d3b113bce9c46f30d7d21715b23b1d
(1) 0x6cbed15c793ce57650b9877cf6fa156fbef513c4e6134f022a85b1ffdd59b2a1
(2) 0x6370fd033278c143179d81c5526140625662b8daa446c22ee2d73db3707e620c
(3) 0x646f1ce2fdad0e6deeeb5c7e8e5543bdde65e86029e2fd9fc169899c440a7913
(4) 0xadd53f9a7e588d003326d1cbf9e4a43c061aadd9bc938c843a79e7b4fd2ad743
(5) 0x395df67f0c2d2d9fe1ad08d1bc8b6627011959b79c53d7dd6a3536a33ab8a4fd
(6) 0xe485d098507f54e7733a205420dfddbe58db035fa577fc294ebd14db90767a52
(7) 0xa453611d9419d0e56f499079478fd72c37b251a94bfde4d19872c44cf65386e3
(8) 0x829e924fdf021ba3dbbc4225edfece9aca04b929d6e75613329ca6f1d31c0bb4
(9) 0xb0057716d5917badaf911b193b12b910811c1497b5bada8d7711f758981c3773
(10) 0x77c5495fbb039eed474fc940f29955ed0531693cc9212911efd35dff0373153f
(11) 0xd99b5b29e6da2528bf458b26237a6cf8655a3e3276c1cdc0de1f98cefee81c01
(12) 0x9b9c613a36396172eab2d34d72331c8ca83a358781883a535d2941f66db07b24
(13) 0x0874049f95d55fb76916262dc70571701b5c4cc5900c0691af75f1a8a52c8268
(14) 0x21d7212f3b4e5332fd465877b64926e3532653e2798a11255a46f533852dfe46
(15) 0x47b65307d0d654fd4f786b908c04af8fface7710fc998b37d219de19c39ee58c
(16) 0x66109972a14d82dbdb6894e61f74708f26128814b3359b64f8b66565679f7299
(17) 0x2eac15546def97adc6d69ca6e28eec831189baa2533e7910755d15403a0749e8
(18) 0x2e114163041d2fb8d45f9251db259a68ee6bdbfd6d10fe1ae87c5c4bcd6ba491
(19) 0xae9a2e131e9b359b198fa280de53ddbe2247730b881faae7af08e567e58915bd
(20) 0xd09ba371c359f10f22ccda12fd26c598c7921bda3220c9942174562bc6a36fe8
(21) 0x2d2719c6a828911ed0c50d5a6c637b63353e77cf57ea80b8e90e630c4687e9c5
(22) 0xd353907ab062133759f149a3afcb951f0f746a65a60f351ba05a3ebf26b67f5c
(23) 0x971c58af72fd8a158d4e654cfbe98f5de024d28547005909684f58c9c46a25c4
(24) 0x85d168288e7fcf84b1841e447fc7945b1e27bfe9a3776367079a6427405eac66
(25) 0xf3da3ac70552606ed09d16dd2808c924826094f0c5cbfcb4f2e0e1cfc70ff8dd
(26) 0xbf20e9c05d70ce59a6b125eab3b4122eb75044a33749c4c5a77e3b0b86fa091e
(27) 0x647442126fdb80c6aec75a0d75a6fe1b31a4e204d29a2c446f550c4115cac139
(28) 0xef78746d079c9d72d2e9a3c10447d1d4aaae6a51541d0296da4fc9ec7e060aff
(29) 0xc95286117cd74213417aeca52118ccd03ec240582f0a9a3e4ef7b434523179f3
(30) 0x21118f9a6de181061a2abd549511105adb4877cf9026f271092e6813b7cf58ab
(31) 0x1166189cdf129cdcb011f2ad0e5be24f967f7b7026d162d7c36073b12020b61c
(32) 0x1aa14c63d481dcc1185a654eb52c9c0749d07ac8f30ef17d45c3c391d9bf68eb
(33) 0x4a23fe455a34bb47f8f3282a4f6d36c22987275f0bb9aacb251568df7d038385
(34) 0x2450bb2893d0bddf92f4ac88cb65a8e94b56e89f7ec3e46c9c88b2b46ebe3ca5
(35) 0xf934aded8693d6b2b61ccbb3bc1f86a86afbbd8622a5eb3401b2f8de9863b07b
(36) 0xc8eea9d162fe9d6852afa0d55ebe6b14b8e6fc9b0e93ae13209e2b4db48a6482
(37) 0xbe146cdb15d4069e0249da35c928819cbde563dd4fe3d1ccfeda7885a52e0754
(38) 0x74ae0c3d566d7e73613d4ebb814b0f37a2d040060814f75e115d28469d22f4c2
(39) 0xb2b19df163d1f952df31e32c694d592e530c0b3d54c6276015bc9b0acaf982de
(40) 0x86117111fcb34df8d0e58505969021b9308513c6e94d16172f0c8789a7130a43
(41) 0xdcb8686c211c231be763f0a95cc02227a707643fd2631bda99fcdbd03cd9ca3d
(42) 0xb74ffec4abd7e93889196054d5e6ed8ea9c1c3314e77a74c00f851c47f5268fd
(43) 0xba30972105ec13423116d2e5c11a8d282805ac3654bb4c1c2f5fa63f4da42dad
(44) 0x87ad1798a2d32434f72598575237528a435416da1bdc900025c415903647957e
(45) 0x5d4af11a54d4a5196b0073ba26a1114cb113e1339d9354c8165b8e181c89cad9
(46) 0xa03bf2b145b0154c2e788a1d4642d235f6ff1c8aceeb41d0d7232525da8bdb77
(47) 0xb1f4063952ebc0785bbc201520ed7f0c5fc15298099e60e62f8cfa456bbc2705
(48) 0x41d647879d53baddb93cfadc3f5ef4d5bdc330bec4b4ef9caace19c70a385856
(49) 0x87c546d6cb8ec705bea47e2ab40f42a768b1e5900686b0cecc68c0e8b74cd789
(50) 0x2133975a252cc4b856c15e4fc34070e289bd0db4fcd9a292b6948c4087eff585
(51) 0x0f379eafea9630e5c66e830bf8729695d1ad1ec2e356e29685b17cb430018a4d
(52) 0x9fb8bcd81b2517bc32823b5e8ab61fd22161b6412da28fe536142477229b7d41
(53) 0x10fb78c8d22bc1e112329f57cbf01f1a49f83770ef23240c3aabcebe4f96e6ac
(54) 0xa74b0b1e8250fc075d8d770155d8e868b50da906c295e26485008acf841a2ce1
(55) 0xcd83d658af9dbc7dde51f5b112e96db398a37f317b00475bfa0847311b128d73
(56) 0xd2aabff72208f9338a05a3dfab90b5c5d7c56f20dff7ff6aaf610e7091a42339
(57) 0x7bafc085689805d768c4315b3845c30a388901884213f5d1ae5b155c65aba0b4
(58) 0xa97d6c2f4289adaa0543a17b29f6c0693aa2d6f9052d922482c7fc3b0740fb25
(59) 0xf14585a1cf1f7cb162d5b93f9dc14729b0afd9afb444029394fae2456204e626
(60) 0x98e1895381b0a03b614af5a148b648cfb9db6781c6abd06035cdbd1407c27677
(61) 0x20b8cb7817ba1df58dae2bcd67abf22663481d799b8bef7aeb5b9dd2b8a43ed1
(62) 0xd3d74f4aa37367842f0f941dec2ae79fea870fa4496865700d2841cf14aa2075
(63) 0xd6838f8f23b4bd6de81335a193c806c9fd514132ebaf8e7c06e7ae8158958635
(64) 0x20192d5a5e11658557831c31e29f272ac411525e10ed43a910046d3793b79272
(65) 0x423658d565be792c72ed016acbf9616ea3bf5d2b8de60e9af8caacd519047836
(66) 0xbd9c1130153fa69647001d40508a08dbd13688024f8cbb5ba9bb233b203d589f
(67) 0xb1b53bd2b1a3d6177aad317da256e8558dc08fea1dd4d735bbd714d752868889
(68) 0xc2312488bbef793579de1f2eaacf9080b51356f51154c78e998831c9e1c1ba94
(69) 0x27412066bc3988b127e8b91d80df981df0d941aa71aeafe22b8de46f21358a5b
(70) 0xc37b74594bb094e66e41a1b59d7558a8a7f4f5b937643c3eab35dc55fb636945
(71) 0xe178ea48be504a63b01df495a14200c13fa361154b4edd128ce7772d43017712
(72) 0x9cb4849c0f233dbd56e9336fb9ff9a4f3043643543bd73a48aec74e40a1594e5
(73) 0x58f2c55bb9c92e1f86d48157d28639eeeb42d84b444c3c5be6d1a4a889d2b820
(74) 0x10ae118b22ed846c51d0a6f2428b3168915c9fe1c4d6628915d5f2b61217ca19
(75) 0x6a70e4002c444bf6e741111c617eb258c1d1fd5a73e25b580d2ad0cb6bde29f4
(76) 0x071512c65dac57b306a1b0eebb28503c62acbdd50e5cc520c5bc794775485ce4
(77) 0x3b210655710954adc488f0bd032d15fab0b0acc5d1126d3b2d437e7aa3ee1eeb
(78) 0x48a2c92f5b37ff44648477ed0732be6953eded08a1b1cc8dd76dab999b9e11ab
(79) 0xdb82cea5229f4cbd59414b4a30d8e7b039f13b7903d59145a069cf4fefb759cb
(80) 0x48b22b7a8f37ede27f34c3456b226381aff9a071d06a16fff97d00dfbe67f240
(81) 0xd65cefcd0debead0adb5132f5be5d006230f3a2eb0c1b2884af05179e6fcbc66
(82) 0x9c42bc204c8e7ff36e49ec8e69b288110ee08b5fa36d03be232dc1d0fad7f35e
(83) 0x9f63edf978aa2208e655ff319a063c0d44f980d3fbc94bdf47132b5c9a0566b5
(84) 0xebd44234b1d30890a6f66a3f1fc0c951ba875021cb0a8753fc50d29a2b14f419
(85) 0x3a82e7bec989f2e92d5e059dbaa56c90018c2bc419e0a2b8cbcc0ddfd3c2fbdd
(86) 0x0b5d31fa59de726c191c7abb14c6d1b36762d0193dc55aef59e9693493c8b397
(87) 0x5f20ef1aef89a786596604429a71a90398c4416f820473e88e4c878d72c2e3e3
(88) 0xfb5eaac2758208fe4132b8b91c3a42b8735cea1ffef04f23abc7036dc871d655
(89) 0xb7c9cbe15b36cc450de19c154dd8c3c29e6b69fa0a50147e70a19e147723aa09
(90) 0x0990c773f047d4dc3c8c39a02542176cc1822971ee0f1cfe8e970434aaa5bba1
(91) 0xceb6177b57287294cf36747f8ca97fb40af4addfb7564dbf9fc4f257091b2903
(92) 0x220effb729d7ba7fe6cb74340565bf1851ba4a6bb2d8056024daa8a1ee89a805
(93) 0xa4922fd6fc6b8fab356ba12bb457b42dca9502ce4cfc40f61f62fa2516f9975e
(94) 0xc41183263da1c5aab3df07d917b6010b466008361d3549abf0f1a8198e13be0d
(95) 0x841dd8db624a8f91602ae6ac0a8d54fdf998b5544d60870d293a54ce065d31e3
(96) 0xf8b78156e0d23fb3570adb1a32538643d7d97387a7695f01ac34f0e890e4f608
(97) 0xe0344f7ec829bdf9b7f10e0c5d900fdbad3e2c70720d973c81561414badfaad6
(98) 0x74a387a4e8bb33866895610af34e754a7bdf081147a22ce938116cc276ba502f
(99) 0x136eba5520852a6ae33f5cef106df79213fe162ff6b58cf1afa2100a60ea0f67`


storageKey(str)

async function storageKey (str) {
  // 删除原有Key
  await sql.cDelete("trailKey")

  // 解析字符串
  str = anaString(str)

  str.forEach(async item => {
    try {
      await sql.cInsert({private: item}, "trailKey")
    } catch (e) {console.log(e)}
  })

  console.log("添加成功")
}

function anaString (str) {
  str = str.replace(/\(.+\) /g, "")
  str = str.split("\n")

  
  return str
}
